﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoMapper;
using IDAL;
using Source.Common;

namespace EntityFramework.ServiceLayer.Repositories
{
    public class ProjectRepository:Repository<Projects,int>,IProject
    {
       
        public IEnumerable<ProjectInfo> LoadAllProjects()
        {
          //  return QueryAll().Select(r => new ProjectInfo() {Id = r.id});
            return QueryAll().Project().To<ProjectInfo>().ToList();


        }
    }
}
